/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package fir.impl;

import fir.*;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;

import fir.FIR;
import fir.FirFactory;
import fir.FirPackage;
import fir.Funcionalidade;
import fir.Informacao;
import fir.Regra;
import fir.linkInformacaoRegra;
import fir.linkRegraFuncionalidade;
import fir.linkRegraInformacao;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class FirFactoryImpl extends EFactoryImpl implements FirFactory {
	/**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static FirFactory init() {
		try {
			FirFactory theFirFactory = (FirFactory)EPackage.Registry.INSTANCE.getEFactory("fir"); 
			if (theFirFactory != null) {
				return theFirFactory;
			}
		}
		catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new FirFactoryImpl();
	}

	/**
	 * Creates an instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FirFactoryImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
			case FirPackage.FIR: return createFIR();
			case FirPackage.FUNCIONALIDADE: return createFuncionalidade();
			case FirPackage.INFORMACAO: return createInformacao();
			case FirPackage.REGRA: return createRegra();
			case FirPackage.LINK_REGRA_INFORMACAO: return createlinkRegraInformacao();
			case FirPackage.LINK_REGRA_FUNCIONALIDADE: return createlinkRegraFuncionalidade();
			case FirPackage.LINK_INFORMACAO_REGRA: return createlinkInformacaoRegra();
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FIR createFIR() {
		FIRImpl fir = new FIRImpl();
		return fir;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Funcionalidade createFuncionalidade() {
		FuncionalidadeImpl funcionalidade = new FuncionalidadeImpl();
		return funcionalidade;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Informacao createInformacao() {
		InformacaoImpl informacao = new InformacaoImpl();
		return informacao;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Regra createRegra() {
		RegraImpl regra = new RegraImpl();
		return regra;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public linkRegraInformacao createlinkRegraInformacao() {
		linkRegraInformacaoImpl linkRegraInformacao = new linkRegraInformacaoImpl();
		return linkRegraInformacao;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public linkRegraFuncionalidade createlinkRegraFuncionalidade() {
		linkRegraFuncionalidadeImpl linkRegraFuncionalidade = new linkRegraFuncionalidadeImpl();
		return linkRegraFuncionalidade;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public linkInformacaoRegra createlinkInformacaoRegra() {
		linkInformacaoRegraImpl linkInformacaoRegra = new linkInformacaoRegraImpl();
		return linkInformacaoRegra;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FirPackage getFirPackage() {
		return (FirPackage)getEPackage();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @deprecated
	 * @generated
	 */
	@Deprecated
	public static FirPackage getPackage() {
		return FirPackage.eINSTANCE;
	}

} //FirFactoryImpl
